-- $Name: ProjectA$
-- $Version: 0.1$
instead_version "1.3.1";

game.enable_save = true;
game.enable_autosave = false;

require "xact";

dofile('./names.lua');
dofile('./options.lua');
dofile('./generation.lua');
dofile('./check.lua');
dofile('./build.lua');

function init()
	if check() then
		gen_game();
		take(menu_planets);
		if player.build == 'spaceport' then goto(spaceport) end;
	end;
end

global {
	planets = {};
};

player = player {
	nam = 'Игрок';
	planet = '';
	city = '';
	build = '';
};

main = room {
	nam = 'Комната';
};
